<include file="Public:header"/>
<div class="wrapbody">
	<div class="main">
		<div class="myright" style="width: 1168px;margin-top: 10px;">
			<div class="wraphtml">
				<div class="f_title clearfix">
					<div class="f_title_span left">
						<span class="current">
						<i></i>
							<a href="{:U('Vote/index')}">新币投票</a>
						</span>
					</div>
				</div>
				<notempty name="prompt_text">
					<div class="mytips" style="    margin: 0px;">
						<h6 style="color: #FF8000;">温馨提示</h6>
						{$prompt_text}
					</div>
				</notempty>
				<div class="f_body">
					<table class="f_table" id="investLog_content">
						<thead>
						<tr>
							<th id="sublist-grid_c0" style="width: 150px;">币种</th>
							<th id="sublist-grid_c2">支持</th>
							<th id="sublist-grid_c3">反对</th>
							<th id="sublist-grid_c1">总数</th>
							<th id="sublist-grid_c4" style="width: 460px;">比例</th>
							<th id="sublist-grid_c6" style="width: 150px;">操作</th>
						</tr>
						</thead>
						<tbody>
						<volist name="list" id="vo">
							<tr>
								<td>
									<img src="__UPLOAD__/coin/{$vo['img']}" alt="" style="margin-bottom: -7px; width: 22px;    margin-right: 7px;"/>{$vo['title']}
								</td>
								<td>{$vo['zhichi']}</td>
								<td>{$vo['fandui']}</td>
								<td>{$vo['zongji']}</td>
								<td>
									<div class="proInvestment" style="width: 460px;">
										<i style="margin-right: 5px;"> </i><em class="fff6d00">{$vo['bili']}%</em>
										<div class="p_bar" style="float: left;margin-top: 0px;">
											<span style="width:{$vo['bili']}%"></span>
										</div>
									</div>
								</td>
								<td>
									<a onclick="javascript:Update(1,'{$vo['name']}');" href="javascript:void(0)" style="color: #0F9932;">支持</a>
									<a onclick="javascript:Update(2,'{$vo['name']}');" href="javascript:void(0)" style="color: orangered;">反对</a>
								</td>
							</tr>
						</volist>
						</tbody>
					</table>
				</div>
			</div>
		</div>
	</div>
</div><br>
<div id="dialogBoxShadow" style="position: absolute; top: 0px; left: 0px; z-index: 100; background-color: rgb(0, 0, 0); opacity: 0.4; width: 100%; background-position: initial initial; background-repeat: initial initial; display: none;"></div>
<script type="text/javascript">
	function Update(type, coinname) {

		$.post("/Vote/up", {
			type: type,
			coinname: coinname,
		}, function (data) {
			if (data.status == 1) {
				layer.msg(data.info, {icon: 1});
				window.setTimeout("window.location='/Vote/index'", 1000);
			} else {
				layer.msg(data.info, {icon: 2});
				if (data.url) {
					window.setTimeout("window.location=" + data.url, 1000);
				}
			}
		}, "json");
	}
</script>
<script>
	$('#vote_box').addClass('active');
</script>
<include file="Public:footer"/>